<html>
	<head>
	<script id="fragment" type="x-shader/x-fragment">
		precision mediump float;
		uniform sampler2D u_Texture0;

		varying vec4 o_Color;
		varying vec2 o_TexCoord;

		void main()
		{
			gl_FragColor  = texture2D(u_Texture0, vec2(o_TexCoord.x, o_TexCoord.y));
		}
	</script>

	<script id="vertex" type="x-shader/x-vertex">
		//	Very important !!! 
		//	If a vertex attribute is not used by the shader, it won't be found by getVertexLocation

		uniform 		mat4 u_ModelMatrix ;
		uniform 		mat4 u_ViewMatrix;
		uniform 		mat4 u_ProjectionMatrix;
		
		uniform 		sampler2D u_Texture0;

		attribute 	 vec4 	a_Position;
		attribute 	 vec4 	a_Color;
		attribute 	 vec4 	a_Normal;
		attribute 	 vec4 	a_TexCoord0;

		varying 	vec4 	o_Color;
		varying  	vec2	o_TexCoord;

		void main()
		{
			vec4 normal 	= 	a_Normal;
			o_TexCoord 		= 	a_TexCoord0.xy;
			o_Color			=  	a_Color;
			gl_Position 	= 	u_ProjectionMatrix*u_ModelMatrix*u_ViewMatrix*a_Position;
		}
		
	</script>

		<script language="Javascript" src="main.js"> </script>
		
		<script language="Javascript" src="src/Vec4.js"> </script>
		
		<script language="Javascript" src="src/Vertex.js"> </script>
		<script language="Javascript" src="src/Face.js"> </script>
		<script language="Javascript" src="src/Mesh.js"> </script>
		<script language="Javascript" src="src/BufferObject.js"> </script>
		<script language="Javascript" src="src/Attributes.js"> </script>
		
		<script language="Javascript" src="src/Quaternion.js"> </script>
		<script language="Javascript" src="src/Matrix.js"> </script>
		<script language="Javascript" src="src/Transform.js"> </script>
		
		<script language="Javascript" src="src/View.js"> </script>


		<script language="Javascript" src="src/Entity.js"> </script>
		<script language="Javascript" src="src/Image.js"> </script>


		<script language="Javascript" src="src/Event.js"> </script>
		<script language="Javascript" src="src/Mouse.js"> </script>
		<script language="Javascript" src="src/Behaviour.js"> </script>
		

		<script language="Javascript" src="src/BufferObject.js"> </script>
		<script language="Javascript" src="src/GLSLProgram.js"> </script>
		<script language="Javascript" src="src/Shader.js"> </script>
		<script language="Javascript" src="src/Application.js"> </script>
	</head>
	
	<body onload="Main();">
	
		<canvas id="Scene" width="500" height="500"></canvas>

	</body>

</html>